Name a function which is same as find() but raises an exception if the substring is not present in the given string.

Python - Online Exam Test Papers | Python - MCQs[multiple choice questions and answers ] | Python - Mock Test Papers | Python - Practice Papers | Python - Sample Test Papers |

Question:
Name a function which is same as find() but raises an exception if the substring is not present in the given string.

1. index( )

2.endswith( )

3. startswith( )

4.count( )

Posted Date:-2021-12-11 19:17:06


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!